
export function getNodePath(node:cc.Node):string
{
    let path;
    while (node && !(node instanceof cc.Scene)) 
    {
        if (path)path = node.name + '/' + path;
        else path = node.name;
        node = node.parent;
    }
    return path;
}
